import type { TableDataInfo } from '@/types/global'
import type { Donation } from '@/types/home'
import type { donationPageParams } from '@/types/myDonate'
import { http } from '@/utils/http'

/**查询捐赠物订单 */
export const getMyDonateListAPI = (params: donationPageParams) => {
  return http<TableDataInfo<Donation>>({
    url: `/user/donationList?pageNum=${params.pageNum}&pageSize=${params.pageSize}`,
    method: 'GET',
    data: {
      status: params.status,
      type: params.type,
    },
  })
}
